package com.bxait.toymail.auth.server.feign;

import com.bxait.com.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/*
@description: 远程掉用第三方服务
@ClassName ThirdPartFeignService
@author Chen
@create 2023-04-20 17:38
@Version 1.0
*/
@FeignClient("toymail-third-party")
public interface ThirdPartFeignService {
    /*
     * @param phone    发送到指定手机
     * @param code     需要发送的验证码
     * @==============History===============<br/>
     * @Description //   调用远程服务发送短信验证码
     * @Date 2023/4/20 2023/4/20 
     * @Author < a href="2277411582@qq.com">chen</ a>
     * @return
     */
    @GetMapping("/sms/sendCode")
    R sendCode(@RequestParam("phone") String phone, @RequestParam("code") String code);
}
